package edu.sctu.practice.class01.huangtianlin.text13;

/**
 * Created by Administrator on 2015/11/12.
 */
public class Test {
    int a_int;
    int b_int;

    double a_double;
    double b_double;
    double c_double;

    String a_string;
    String b_string;


    public Test(int a, int b) {

        this.a_int = a;
        this.b_int = b;

    }

    public Test(double a, double b, double c) {

        this.a_double = a;
        this.b_double = b;
        this.c_double = c;

    }


    public Test(String a, String b) {

        this.a_string = a;
        this.b_string = b;

    }

    public void compareValue(){

        if (a_int > b_int){

            System.out.println(a_int+"大于"+b_int);

        }else {

            System.out.println(a_int+"小于"+b_int);

        }

    }

    public  void findProduct(){

        double  product = a_double*b_double*c_double;
        System.out.println("三个数的乘积是"+product);

    }

    public  void isSame(){

        if (a_string.equals(b_string)){

            System.out.println("字符串相同");

        }

    }

}
